package com.cw.mapper;

import com.cw.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户角色管理 Mapper 接口
 * </p>
 *
 * @author smq
 * @since 2021-04-28
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {
    List<SysRole> getSysRole(@Param("roleId") String roleId , @Param("roleName") String roleName, @Param("roleCode") String roleCode);

    List<SysRole> getSysRoleByRoleName(@Param("roleName") String roleName);

    int insertSysRole(SysRole sysRole);

    int updateSysRole(SysRole sysRole);

    int deleteSysRole(String roleId);

    int deleteManySysRole(List<String> roleIds);

    SysRole getSysRoleById(@Param("id")String id);
}
